﻿using System;
using System.Runtime.Serialization;

namespace LuxDiner.Model.Orders
{
    [DataContract]
    public class RepertoryModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public string OrderNo { get; set; }
        [Model]
        [DataMember]
        public int ProductID { get; set; }
        [Model]
        [DataMember]
        public decimal Quantity { get; set; }
        [Model]
        [DataMember]
        public decimal Balance { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public System.DateTime CreatedOn { get; set; }
        [Model]
        [DataMember]
        public int Method { get; set; }
        [Model]
        [DataMember]
        public int HouseID { get; set; }
        [Model]
        [DataMember]
        public string Retention { get; set; }
        [Model]
        [DataMember]
        public decimal FinalCost { get; set; }

        #region Help
        [DataMember]
        public Products.ProductModel Product { get; set; }
        [DataMember]
        public WarehouseModel Warehouse { get; set; }
        #endregion
    }

    [DataContract]
    public class RepertoryCollection : ModelCollectionBase<RepertoryModel> { }
}
